﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using TMS_Master.TmsEnum;
using Volo.Abp.Domain.Entities.Auditing;

namespace TMS_Master.Entities
{
    /// <summary>
    /// 物资入库表
    /// </summary>
    [Table("Materials_Company")]
    public class Materials_Company: AuditedAggregateRoot<Guid>
    {

        /// <summary>
        /// 货物名称
        /// </summary>
        [StringLength(20)]
        [Required]
        public string   CompanyName { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [Required]
        public Guid TypeID      { get; set; }

        /// <summary>
        /// 材质
        /// </summary>
        [Required]
        public Guid TextureID   { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        [StringLength(20)]
        [Required]
        public string   SkuName     { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        [Required]
        public Guid AddrID      { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [Required]
        public int      Number      { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        [Required]
        public decimal  Price       { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        [Required]
        public PayNames PayName     { get; set; }

        /// <summary>
        /// 采购金额
        /// </summary>
        [Required]
        public decimal  Money       { get; set; }

        /// <summary>
        /// 登记人
        /// </summary>
        [StringLength(20)]
        [Required]
        public string   Registrar   { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        public string   Remark      { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreateTime  { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public int IsDeleted { get; set; }
    }
}
